home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-06 | 988 b | 58 lines | [TEXT/MSET] |
- \ 28Oct94 dbh deleted general reference
-
- (*
- A nullSelect object will accept all of the standard protocol messages for
- the currentSel in a SelWindow. If we always subclass from nullselect then we
- are assured of not forgetting to define one of the required messages, even if
- we don't use it.
- *)
-
-
- :CLASS nullSelect super{ object }
-
- \ we always pass the window pointer, whether it is needed or not, for consistency
- :m new: ( wptr -- ) drop ;m
- :m release: ;m
-
- :m activate: ;m
- :m deactivate: ;m
-
- :m idle: initCursor ;m
- :m draw: ;m
- :m key: ( char -- ) drop ;m
-
- :m hit?: ( -- f ) false ;m
- :m alwaysActive?: ( -- b) true ;m
- :m focus?: ( -- b) false ;m
- :m click: ;m
-
- :m cut: ;m
- :m copy: ;m
- :m paste: ;m
- :m clear: ;m
-
- ;CLASS
-
-
-
- nullSelect tnullSelect \ our standard nullSelect object
-
-
- endload
-
- *** EXAMPLE USE
-
- :class testSelect super{ nullSelect }
-
- :m draw: \ over ride the draw: method
- 40 40 moveTo
- " I am a testSelect" mDrawString ;m
- ;class
-
- selwindow w
- test: w
-
- testSelect t
- t add: w
-
-